package com.ruoyi.pg.costSetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.costSetting.domain.PgChargedItemsType;
import com.ruoyi.pg.costSetting.vo.PgChargedItemsTypeVo;
import com.ruoyi.pg.costSetting.mapper.PgChargedItemsTypeMapper;
import com.ruoyi.pg.costSetting.service.IPgChargedItemsTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 收费项目类型Service业务层处理
 *
 * @author Ming
 * @date 2025-10-20
 */
@Service
public class PgChargedItemsTypeServiceImpl extends ServiceImpl<PgChargedItemsTypeMapper, PgChargedItemsType> implements IPgChargedItemsTypeService {

    @Override
    public TableDataInfo<PgChargedItemsTypeVo> queryList(PgChargedItemsTypeVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgChargedItemsTypeVo> queryAll(PgChargedItemsTypeVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgChargedItemsTypeVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
